package com.example;

public class Helloworld {
    public static void main(String[] args) {
        System.out.println("hello world");
        System.out.println("hello suzhou my name is xiuxian");
        System.out.println(args);

        System.out.println(-15>>>2);


        //对象类型
        StringBuffer x=new StringBuffer("a");
        StringBuffer y=new StringBuffer("b");

        change(x,y);
        System.out.println("main-:"+x);
        System.out.println("main-:"+y);

        //方法返回类型
        add(100);
        int result=test(10,8);
        System.out.println(result);
        sub(10,20,30,40,50);
    }

    private static void sub(int ...arr) {
    }

    private static int test(int a, int b) {
      int result=a^b;
      return  result;
    }

    private static void add(int a) {
        if(a>=60){

            System.out.println("及格！！");
            return;
        }

        System.out.println("不及格！");
    }


    private static void change(StringBuffer x, StringBuffer y) {
        x=y;
        y.append("b");
        System.out.println("change-:"+x);
        System.out.println("change-:"+y);
    }
}
